package demo6;

public class Order {

    private String name;

    public Order() {
        System.out.println("构造器");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        System.out.println("set");
        this.name = name;
    }

    public void init() {
        System.out.println("init");
    }

    public void destroy() {
        System.out.println("destroy");
    }
}
